home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / PK002.422 < prev    next >
Text File  |  1993-04-07  |  3KB  |  75 lines

  1. Huh? You talking at me???               <RaNdOm TiTlE>
  2. Prince Kheldar #1 @13466 7──══2Time Traveller7══──
  3. Wed Mar 31 10:28:27 1993
  4. 7Msg Status2: 3No reply necessary.
  5.  
  6. ┌───────────────────────────────────────────────────────────────────────────┐
  7. │Mod Name: PK002.MOD               Author: Prince Kheldar 1@3476 WWIVnet    │
  8. │Difficulty:█▓▓▓▓▓▓▓                       1@3476 Icenet, 1@1008 AssNet     │
  9. │WWIV Version: 4.22                        1@13466 WWIVLink                 │
  10. │Files affected: MSGBASE.C         Date:   3-31-93                          │
  11. │                                                                           │
  12. │Description: This mod adds the user note after the persons handle.         │
  13. │But it also has the added feature that is does not put the annoying        │
  14. │[] after their name if there is no note present.                           │
  15. └───────────────────────────────────────────────────────────────────────────┘
  16.  
  17. Basically this mod makes this:
  18.  
  19. Prince Kheldar 1@3476   into this   Prince Kheldar 1@3476 [The Bartender]
  20.  
  21. Also it will not add the annoying [] (brackets) after the name if there
  22. is no note present, it will look like the first one.
  23.  
  24. Disclamier: If you use it, it's YOUR fault, it works on 422+, and older
  25. versions of WWIV.
  26.  
  27. P.S: This mods was done by alot of diffrent people, I just made it better.
  28.  
  29. First:
  30.      You already know what to do with the source.
  31.  
  32. Second:
  33.       Look for this at the top of void inmsg:
  34.  
  35.   char s[LEN],s1[LEN],s2[LEN],ro[81],fnx[81],chx,*ss,*ss1;
  36.  
  37. And, add ",header[81]" to the end, so it looks like this:
  38.  
  39.   char s[LEN],s1[LEN],s2[LEN],ro[81],fnx[81],chx,*ss,*ss1, header[81];
  40.  
  41. Third:
  42. Now, later in void inmsg, look for this, and delete it:
  43.  
  44.     if (real_name)
  45.       addline(b,thisuser.realname,&l1);
  46.     else
  47.        addline(b,nam1(&thisuser,usernum,syscfg.systemnumber),&l1);
  48.  
  49. and replace it with this:  (WATCH the SCREEN WRAP BELOW!)
  50.  
  51.     if (real_name)
  52.       addline(b,thisuser.realname,&l1);
  53.     else {
  54.       if (thisuser.note[0]==0) {
  55.       addline(b,nam1(&thisuser,usernum,net_sysnum),&l1);
  56.     } else {
  57.       sprintf(header,"%s 7[1%s7]0",nam1(&thisuser,usernum,net_sysnum),thisuser.note
  58. );    /* <-WATCH THE SCREEN WRAP HERE! */
  59. 6 0      addline(b,header,&l1);
  60.      }
  61.     }
  62.     time(&ll);              <- Existing Code (Do not add)
  63.     strcpy(s,ctime(&ll));   <- Existing Code (Do not add)
  64.  
  65. Piece of Pie eh? Thought so......
  66. If you like this mod, drop me a line and let me know...
  67.  
  68.                             Prince Kheldar
  69.                         1@3476 Icenet, WWIVnet
  70.                     1@13466 WWIVLink, 1@1008 AssNet
  71.  
  72.         5-=0 7Callahan's Crosstime Saloon 2314-939-41136 * 3St. Charles Mo 5=-
  73.               5 7 5      -=0 1WWIV7net 6@534767 1WWIV7Link0 6@5134660 5=-
  74.         5 0        5  -=0 1Ice7Net 6@534767 [2GSA7/2ASV7]5 1Ass7Net 6@51008 =-
  75.